import request from '@/utils/request'

let StallApi = {
    /*摊位列表*/
    stallList(data, errorback) {
        return request._get('/shop/stall.apply/index', data, errorback);
    },
    /*添加摊位*/
    addStall(data, errorback) {
        return request._post('/shop/stall.apply/add', data, errorback);
    },
    /*修改摊位*/
    getStall(data, errorback) {
        return request._get('/shop/stall.apply/edit', data, errorback);
    },
    /*修改摊位*/
    editStall(data, errorback) {
        return request._post('/shop/stall.apply/edit', data, errorback);
    },
    /*删除摊位*/
    deleteStall(data, errorback) {
        return request._post('/shop/stall.apply/delete', data, errorback);
    },
    /*审核摊位*/
    auditStall(data, errorback) {
        return request._post('/shop/stall.apply/audit', data, errorback);
    },
}

export default StallApi;
